<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE html>
<html lang="en">
  <head>
  	<c:import url="../includes/headBootstrap.jsp"/>
    <title>Home</title>
  </head>
  <body>
    <c:import url="../includes/header.jsp"/>

<div class="panel panel-default">
  <!-- Default panel contents -->
  <div class="panel-heading">Institui&ccedil;&otilde;es</div>
  <div class="panel-body">
  	<a href="<c:url value="/poslogin/instituicoes/adicionar"/>" class="btn btn-default">
  		<span class="glyphicon glyphicon-plus"></span> 
  		Adicionar Institui&ccedil;&atilde;o
	</a>
  </div>

  <!-- Table -->
  <table class="table">
	<tr>
		<td>
			#ID
		</td>
		<td>
			Nome
		</td>
		<td>
			Dia do Vencimento Sugerido
		</td>
		<td>
			Dia de Corte Sugerido
		</td>
	</tr>
	<c:forEach items="${instituicoes}" var="instituicao">
	<tr>
		<td>
			${instituicao.id}
		</td>
		<td>
			${instituicao.nome}
		</td>
		<td>
			${instituicao.diaVencimento}
		</td>
		<td>
			${instituicao.diaCorte}
		</td>
	</tr>
	</c:forEach>	
		  </table>
</div>
		
	<c:import url="../includes/footBootstrap.jsp"/>    
  </body>
</html>